//
// Created by enemy1205 on 2021/7/23.
//
#include "Process_manage.h"
#include "Player.h"
using namespace std;
int main(){
    ProcessManager PM;
    srand((unsigned int)time(NULL));
//    for(auto it=PM.m_Player.begin();it!=PM.m_Player.end();it++){
//        cout<<"选手编号"<<it->first;
//        cout<<" 姓名:  "<<it->second._Name;
//        cout<<" 成绩:  "<<it->second._Score[0]<<endl;
//    }
    int choice=0;
    while (true){
        PM.show_menu();
        cout<<"请输入您的选择:  "<<endl;
        cin>>choice;
        switch (choice)
        {
            case 1:  //开始比赛
                PM.startCompetition();
            case 2:  //查看记录
                PM.showRecord();
            case 3:  //清空记录
                PM.clearRecord();
            case 0: PM.exit_system();
                break;//退出系统
            default:
                printf("\033c"); //清屏
                break;
        }

    }

    return 0;
}

